<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>成员录入 - 家族树</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <link rel="stylesheet" href="styles.css">
    <style>
        body {
            font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
            background-color: #f8f8f8;
            color: #333;
            margin: 0;
            padding: 0;
            padding-bottom: 83px; /* 为底部导航栏留出空间 */
        }
        
        /* 状态栏样式 */
        .status-bar {
            height: 44px;
            background-color: #ffffff;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid #f0f0f0;
        }
        
        /* 导航栏 */
        .nav-bar {
            height: 44px;
            display: flex;
            align-items: center;
            padding: 0 16px;
            background-color: #ffffff;
            border-bottom: 1px solid #f0f0f0;
            position: relative;
        }
        
        .back-button {
            position: absolute;
            left: 16px;
            font-size: 20px;
            color: #333;
        }
        
        .page-title {
            flex: 1;
            text-align: center;
            font-size: 18px;
            font-weight: 600;
        }
        
        /* 底部导航栏样式 */
        .tab-bar {
            height: 83px;
            background-color: #ffffff;
            display: flex;
            justify-content: space-around;
            align-items: center;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            border-top: 1px solid #f0f0f0;
            padding-bottom: 20px; /* 适配iPhone底部安全区域 */
        }
        
        .tab-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #999;
            font-size: 10px;
            padding: 8px 0;
        }
        
        .tab-item.active {
            color: #e86c60; /* 主题色 */
        }
        
        .tab-icon {
            font-size: 22px;
            margin-bottom: 4px;
        }
        
        /* 表单样式 */
        .form-section {
            background-color: white;
            margin: 16px;
            border-radius: 12px;
            padding: 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        
        .section-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 16px;
            color: #333;
            display: flex;
            align-items: center;
        }
        
        .section-icon {
            color: #e86c60;
            margin-right: 8px;
        }
        
        .form-group {
            margin-bottom: 16px;
        }
        
        .form-label {
            display: block;
            font-size: 14px;
            color: #666;
            margin-bottom: 8px;
        }
        
        .form-input {
            width: 100%;
            padding: 12px;
            border: 1px solid #e5e5e5;
            border-radius: 8px;
            font-size: 14px;
            color: #333;
        }
        
        .form-select {
            width: 100%;
            padding: 12px;
            border: 1px solid #e5e5e5;
            border-radius: 8px;
            background-color: white;
            font-size: 14px;
            color: #333;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
        }
        
        .form-textarea {
            width: 100%;
            padding: 12px;
            border: 1px solid #e5e5e5;
            border-radius: 8px;
            font-size: 14px;
            color: #333;
            min-height: 100px;
            resize: vertical;
        }
        
        .btn-primary {
            background-color: #e86c60;
            color: white;
            border-radius: 8px;
            padding: 12px 20px;
            font-weight: 500;
            border: none;
            width: 100%;
            text-align: center;
            margin-top: 16px;
        }
        
        .btn-outline {
            background-color: white;
            color: #e86c60;
            border: 1px solid #e86c60;
            border-radius: 8px;
            padding: 12px 20px;
            font-weight: 500;
            width: 100%;
            text-align: center;
            margin-top: 16px;
        }
        
        /* 头像上传样式 */
        .avatar-upload {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 24px;
        }
        
        .avatar-preview {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background-color: #f0f0f0;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 12px;
            overflow: hidden;
            border: 2px dashed #e5e5e5;
        }
        
        .avatar-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .avatar-upload-icon {
            font-size: 32px;
            color: #ccc;
        }
        
        .avatar-upload-btn {
            background-color: #f8f8f8;
            color: #666;
            border: 1px solid #e5e5e5;
            border-radius: 20px;
            padding: 6px 12px;
            font-size: 12px;
            display: flex;
            align-items: center;
        }
        
        .avatar-upload-btn i {
            margin-right: 4px;
        }
        
        /* 关系选择样式 */
        .relation-selector {
            display: flex;
            flex-wrap: wrap;
            margin: 0 -8px;
        }
        
        .relation-option {
            width: calc(33.333% - 16px);
            margin: 0 8px 16px;
            text-align: center;
        }
        
        .relation-option input[type="radio"] {
            display: none;
        }
        
        .relation-option label {
            display: block;
            padding: 8px;
            border: 1px solid #e5e5e5;
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .relation-option input[type="radio"]:checked + label {
            background-color: #e86c60;
            color: white;
            border-color: #e86c60;
        }
        
        /* 日期选择器样式 */
        .date-picker {
            display: flex;
        }
        
        .date-picker select {
            flex: 1;
            padding: 12px 8px;
            border: 1px solid #e5e5e5;
            font-size: 14px;
            color: #333;
            margin-right: 8px;
            border-radius: 8px;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 8px center;
        }
        
        .date-picker select:last-child {
            margin-right: 0;
        }
    </style>
</head>
<body class="scroll-container-y">
    <!-- iOS状态栏 -->
    <div class="status-bar">
        <div class="time font-medium">9:41</div>
        <div class="icons flex">
            <i class="fas fa-signal mr-1"></i>
            <i class="fas fa-wifi mr-1"></i>
            <i class="fas fa-battery-full"></i>
        </div>
    </div>
    
    <!-- 导航栏 -->
    <div class="nav-bar">
        <a href="family_tree.html" class="back-button">
            <i class="fas fa-chevron-left"></i>
        </a>
        <div class="page-title">成员录入</div>
    </div>
    
    <!-- 主内容 -->
    <div class="pb-20">
        <!-- 基本信息表单 -->
        <div class="form-section">
            <div class="section-title">
                <i class="section-icon fas fa-user"></i>
                <span>基本信息</span>
            </div>
            
            <div class="avatar-upload">
                <div class="avatar-preview">
                    <i class="avatar-upload-icon fas fa-user"></i>
                </div>
                <button class="avatar-upload-btn">
                    <i class="fas fa-camera"></i>
                    <span>上传头像</span>
                </button>
            </div>
            
            <div class="form-group">
                <label class="form-label">姓名 <span class="text-red-500">*</span></label>
                <input type="text" class="form-input" placeholder="请输入姓名">
            </div>
            
            <div class="form-group">
                <label class="form-label">性别 <span class="text-red-500">*</span></label>
                <select class="form-select">
                    <option value="">请选择性别</option>
                    <option value="male">男</option>
                    <option value="female">女</option>
                </select>
            </div>
            
            <div class="form-group">
                <label class="form-label">出生日期</label>
                <div class="date-picker">
                    <select>
                        <option value="">年</option>
                        <option value="2023">2023</option>
                        <option value="2022">2022</option>
                        <option value="2021">2021</option>
                        <!-- 更多年份选项 -->
                    </select>
                    <select>
                        <option value="">月</option>
                        <option value="1">1</option>
                        <option value="2">2</option>
                        <option value="3">3</option>
                        <!-- 更多月份选项 -->
                    </select>
                    <select>
                        <option value="">日</option>
                        <option value="1">1</option>
                        <option value="2">2</option>
                        <option value="3">3</option>
                        <!-- 更多日期选项 -->
                    </select>
                </div>
            </div>
            
            <div class="form-group">
                <label class="form-label">出生地</label>
                <input type="text" class="form-input" placeholder="请输入出生地">
            </div>
            
            <div class="form-group">
                <label class="form-label">世代 <span class="text-red-500">*</span></label>
                <select class="form-select">
                    <option value="">请选择世代</option>
                    <option value="1">第一代</option>
                    <option value="2">第二代</option>
                    <option value="3">第三代</option>
                    <option value="4">第四代</option>
                    <option value="5">第五代</option>
                </select>
            </div>
        </div>
        
        <!-- 家族关系表单 -->
        <div class="form-section">
            <div class="section-title">
                <i class="section-icon fas fa-sitemap"></i>
                <span>家族关系</span>
            </div>
            
            <div class="form-group">
                <label class="form-label">与录入者关系 <span class="text-red-500">*</span></label>
                <div class="relation-selector">
                    <div class="relation-option">
                        <input type="radio" name="relation" id="relation-father" value="father">
                        <label for="relation-father">父亲</label>
                    </div>
                    <div class="relation-option">
                        <input type="radio" name="relation" id="relation-mother" value="mother">
                        <label for="relation-mother">母亲</label>
                    </div>
                    <div class="relation-option">
                        <input type="radio" name="relation" id="relation-spouse" value="spouse">
                        <label for="relation-spouse">配偶</label>
                    </div>
                    <div class="relation-option">
                        <input type="radio" name="relation" id="relation-son" value="son">
                        <label for="relation-son">儿子</label>
                    </div>
                    <div class="relation-option">
                        <input type="radio" name="relation" id="relation-daughter" value="daughter">
                        <label for="relation-daughter">女儿</label>
                    </div>
                    <div class="relation-option">
                        <input type="radio" name="relation" id="relation-brother" value="brother">
                        <label for="relation-brother">兄弟</label>
                    </div>
                    <div class="relation-option">
                        <input type="radio" name="relation" id="relation-sister" value="sister">
                        <label for="relation-sister">姐妹</label>
                    </div>
                    <div class="relation-option">
                        <input type="radio" name="relation" id="relation-grandfather" value="grandfather">
                        <label for="relation-grandfather">祖父</label>
                    </div>
                    <div class="relation-option">
                        <input type="radio" name="relation" id="relation-grandmother" value="grandmother">
                        <label for="relation-grandmother">祖母</label>
                    </div>
                </div>
            </div>
            
            <div class="form-group">
                <label class="form-label">关联成员</label>
                <select class="form-select">
                    <option value="">请选择关联成员</option>
                    <option value="1">张大山（第一代）</option>
                    <option value="2">张建国（第二代）</option>
                    <option value="3">张明（第三代）</option>
                    <option value="4">张小明（第四代）</option>
                </select>
            </div>
            
            <div class="form-group">
                <label class="form-label">婚姻状况</label>
                <select class="form-select">
                    <option value="">请选择婚姻状况</option>
                    <option value="single">未婚</option>
                    <option value="married">已婚</option>
                    <option value="divorced">离异</option>
                    <option value="widowed">丧偶</option>
                </select>
            </div>
        </div>
        
        <!-- 联系方式表单 -->
        <div class="form-section">
            <div class="section-title">
                <i class="section-icon fas fa-address-book"></i>
                <span>联系方式</span>
            </div>
            
            <div class="form-group">
                <label class="form-label">手机号码</label>
                <input type="tel" class="form-input" placeholder="请输入手机号码">
            </div>
            
            <div class="form-group">
                <label class="form-label">电子邮箱</label>
                <input type="email" class="form-input" placeholder="请输入电子邮箱">
            </div>
            
            <div class="form-group">
                <label class="form-label">现居地址</label>
                <input type="text" class="form-input" placeholder="请输入现居地址">
            </div>
        </div>
        
        <!-- 其他信息表单 -->
        <div class="form-section">
            <div class="section-title">
                <i class="section-icon fas fa-info-circle"></i>
                <span>其他信息</span>
            </div>
            
            <div class="form-group">
                <label class="form-label">职业</label>
                <input type="text" class="form-input" placeholder="请输入职业">
            </div>
            
            <div class="form-group">
                <label class="form-label">学历</label>
                <select class="form-select">
                    <option value="">请选择学历</option>
                    <option value="primary">小学</option>
                    <option value="junior">初中</option>
                    <option value="high">高中</option>
                    <option value="college">大专</option>
                    <option value="bachelor">本科</option>
                    <option value="master">硕士</option>
                    <option value="doctor">博士</option>
                </select>
            </div>
            
            <div class="form-group">
                <label class="form-label">毕业院校</label>
                <input type="text" class="form-input" placeholder="请输入毕业院校">
            </div>
            
            <div class="form-group">
                <label class="form-label">专业</label>
                <input type="text" class="form-input" placeholder="请输入专业">
            </div>
            
            <div class="form-group">
                <label class="form-label">个人简介</label>
                <textarea class="form-textarea" placeholder="请输入个人简介"></textarea>
            </div>
        </div>
        
        <!-- 提交按钮 -->
        <div class="px-4 mb-8">
            <button class="btn-primary">保存</button>
            <button class="btn-outline">取消</button>
        </div>
    </div>
    
    <!-- 底部导航栏 -->
    <div class="tab-bar">
        <a href="home.html" class="tab-item">
            <i class="tab-icon fas fa-home"></i>
            <span>首页</span>
        </a>
        <a href="family_tree.html" class="tab-item active">
            <i class="tab-icon fas fa-sitemap"></i>
            <span>家谱</span>
        </a>
        <a href="family_activity.html" class="tab-item">
            <i class="tab-icon fas fa-calendar-alt"></i>
            <span>活动</span>
        </a>
        <a href="family_stories.html" class="tab-item">
            <i class="tab-icon fas fa-book"></i>
            <span>故事</span>
        </a>
        <a href="profile.html" class="tab-item">
            <i class="tab-icon fas fa-user"></i>
            <span>我的</span>
        </a>
    </div>
</body>
</html> 